#define _CRT_SECURE_NO_WARNINGS
#include"String.h"

void test1()
{
	H::mystring s1("hello world");
	cout << s1.c_str() << endl;
	H::mystring s2;
	s2.append("hello world");
	size_t len = s2.size();
	s2 += "hello";
	H::mystring tmp = s2.substr(len, s2.size() - len);
	cout << tmp.c_str() << endl;
	cout << tmp.find("l");
	tmp.erase(tmp.find("l"));
	cout << tmp.c_str() << endl;
	const H::mystring  s3("hello world");
	cout << s3.size();
}
void test2()
{
	H::mystring s1("hello world");
	s1.resize(5);
	cout << s1.c_str();

}
void test3()
{
	H::mystring s2;
	cin >> s2;
	
	cout << s2.c_str();
	cin >> s2;
	cout << s2.c_str();

}
void test4()
{
	const char *tmp= "hello";
	cout<<sizeof(tmp)<<endl;
	cout << strlen(tmp)<<endl;
}
void test5()
{
	H::mystring s1("hello");
	H::mystring s2;
	s2 = s1;
	cout << s2;
}
int main() { 
	//test2();
	//test3();
	//test4();
	test5();
	//cout << sizeof(size_t);
}  
